package com.xnyzc.lhy.resource.feign.fallback.worksheet;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xnyzc.lhy.common.entity.DiDiRv;
import com.xnyzc.lhy.common.entity.WorksheetRv;
import com.xnyzc.lhy.common.penum.EDiDiErrorCode;
import com.xnyzc.lhy.common.penum.worksheet.WorksheetErrorCode;
import com.xnyzc.lhy.mis.entity.worksheet.OaSysWorksheet;
import com.xnyzc.lhy.order.entity.param.synchronization.ChangePriceParam;
import com.xnyzc.lhy.resource.entity.worksheet.param.*;
import com.xnyzc.lhy.resource.entity.worksheet.param.heli.FromHeliWorksheetParam;
import com.xnyzc.lhy.resource.feign.worksheet.IFWorksheetService;
import com.xnyzc.lhy.resource.mapper.worksheet.WorksheetMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 工单信息表 服务实现类
 * </p>
 *
 * @author haoyfa
 * @since 2019-11-04
 */
@Slf4j
@Service
public class WorksheetServiceFallback implements IFWorksheetService {


    @Override
    public WorksheetRv cancelOrder(WorksheetCancelOrderParam worksheetCancelOrderParam) {
        return WorksheetRv.wrapErrorCode(WorksheetErrorCode.misServerError);
    }

    @Override
    public DiDiRv getCloseOrder(WorksheetCloseOrderParam worksheetCloseOrderParam) {
        return DiDiRv.wrapErrorCode(EDiDiErrorCode.misServerError);
    }

    @Override
    public DiDiRv getChangePrice(ChangePriceParam priceParam) {
        return DiDiRv.wrapErrorCode(EDiDiErrorCode.misServerError);
    }

    @Override
    public DiDiRv getBillRefund(WorksheetGetBillRefundParam worksheetGetBillRefundParam) {
        return DiDiRv.wrapErrorCode(EDiDiErrorCode.misServerError);
    }

    @Override
    public DiDiRv getFreeCharge(WorksheetFreeChargeParam worksheetFreeChargeParam) {
        return DiDiRv.wrapErrorCode(EDiDiErrorCode.misServerError);
    }

    @Override
    public WorksheetRv updateWorksheet(WorksheetUpdateWorksheetParam worksheetUpdateWorksheetParam) {
        return WorksheetRv.wrapErrorCode(WorksheetErrorCode.misServerError);
    }

    @Override
    public WorksheetRv getOrderPersonalDetail(WorksheetGetOrderPersonalDetailParam worksheetGetOrderPersonalDetailParam) {
        return WorksheetRv.wrapErrorCode(WorksheetErrorCode.misServerError);
    }

    @Override
    public WorksheetRv getOrderPersonalList(WorksheetgetOrderPersonalListParam worksheetgetOrderPersonalListParam) {
        return WorksheetRv.wrapErrorCode(WorksheetErrorCode.misServerError);
    }

    @Override
    public WorksheetRv setDriverPenaltyDetail(WorksheetetDriverPenaltyDetailParam worksheetetDriverPenaltyDetailParam) {
        return WorksheetRv.wrapErrorCode(WorksheetErrorCode.misServerError);
    }

    @Override
    public WorksheetRv getDriverDetail(WorksheetetGetDriverDetailParam worksheetetGetDriverDetailParam) {
        return WorksheetRv.wrapErrorCode(WorksheetErrorCode.misServerError);
    }

    /**
     * 创建工单
     *
     * @param fromHeliWorksheetParam
     * @return
     */
    @Override
    public WorksheetRv createWorksheet(FromHeliWorksheetParam fromHeliWorksheetParam) {
        return WorksheetRv.wrapErrorCode(WorksheetErrorCode.misServerError);
    }

    /**
     * 获取订单状态
     * @param worksheetGetOrderPersonalStatusParam
     * @return
     */
    @Override
    public WorksheetRv getOrderPersonalStatus(WorksheetGetOrderPersonalStatusParam worksheetGetOrderPersonalStatusParam) {
        return WorksheetRv.wrapErrorCode(WorksheetErrorCode.misServerError);
    }
}
